/* 
    company : Acelys ASN SSII Montpellier
    author : Melvin B
    2022
*/



/* -------------------------------- 
Variables
----------------------------------*/
:root {
    --color-primary: rgb(26, 34, 95);
    --color-primary-light: rgb(7, 23, 147);
    --color-primary-light-very: rgb(16, 35, 179);

    --color-secondary: rgb(108, 117, 125);
    --color-secondary-dark: rgb(92, 99, 106);

    --color-gray: rgb(228, 228, 231);
    --color-gray-dark: rgb(218, 222, 226);

    --margin-top: 10px;
}



/* -------------------------------- 
Reset
----------------------------------*/
* {
    font: inherit;
    margin: 0;
    padding: 0;
    /* border: 0; */
    box-sizing: border-box;
}

body {
    background-color: rgb(255, 255, 255);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
}

ol,
ul,
menu {
    list-style: none;
}

a {
    text-decoration: none;
    color: black;
}

/* -------------------------------- 
Components
----------------------------------*/

/* ========== Components  -  Scrollbar ========== */
* {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #ddd transparent;
    /* Firefox */
}

*::-webkit-scrollbar {
    width: 7px;
    cursor: pointer;
}

*::-webkit-scrollbar-track {
    /* back du scroll */
    background: none;
}

*::-webkit-scrollbar-thumb {
    /* 'cursor' du scroll */
    background: #ddd;
    border-radius: 20px;
}


/* ========== Components  -  Radio switch ========== */
/* 
    Part: radio-switch
    Title: Radio Switch
    Descr: Custom radio toggle
    Usage: https://codyhouse.co/license
    License: https://codyhouse.co/mit 
*/
:root {
    --radio-switch-width: 186px;
    --radio-switch-width: 400px;
    --radio-switch-height: 46px;
    --radio-switch-height: 38px;
    --radio-switch-padding: 3px;
    --radio-switch-radius: 50em;
    --radio-switch-animation-duration: 0.3s;
}

.radio-switch {
    position: relative;
    display: inline-block;
    display: inline-flex;
    padding: var(--radio-switch-padding);
    border-radius: calc(var(--radio-switch-radius) * 1.4);
    background-color: var(--color-gray);
}

.radio-switch__item {
    position: relative;
    display: inline-block;
    height: calc(var(--radio-switch-height) - 2*var(--radio-switch-padding));
    width: calc(var(--radio-switch-width)*0.5 - var(--radio-switch-padding));
}

.radio-switch__label {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: var(--radio-switch-radius);
    cursor: pointer;
    font-size: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all var(--radio-switch-animation-duration);
}

.radio-switch__input:checked~.radio-switch__label {
    color: white;
}

.radio-switch__input:focus~.radio-switch__label {
    background-color: rgba(var(--color-primary), 0.6);
}

.radio-switch__label :not(*):focus-within,
.radio-switch__input:focus~.radio-switch__label {
    background-color: transparent;
}

.radio-switch__marker {
    position: absolute;
    z-index: 1;
    top: 0;
    left: -100%;
    border-radius: var(--radio-switch-radius);
    background-color: var(--color-primary);
    height: calc(var(--radio-switch-height) - 2*var(--radio-switch-padding));
    width: calc(var(--radio-switch-width)*0.5 - var(--radio-switch-padding));
    box-shadow: 0 0.9px 1.5px rgba(0, 0, 0, 0.03), 0 3.1px 5.5px rgba(0, 0, 0, 0.08), 0 14px 25px rgba(0, 0, 0, 0.12);
    transition: -webkit-transform var(--radio-switch-animation-duration);
    transition: transform var(--radio-switch-animation-duration);
    transition: transform var(--radio-switch-animation-duration), -webkit-transform var(--radio-switch-animation-duration);
}

.radio-switch__input:checked~.radio-switch__marker {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
}

.radio-switch__sr-only {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    white-space: nowrap;
}

.radio-switch:hover .radio-switch__marker {
    background-color: var(--color-primary-light);
}


/* ========== Components  -  Input ========== */
/* ---------- Components  -  Input  -  floating effect ---------- */
.form_floating {
    position: relative;
}

.form_floating input {
    display: block;
    width: 100%;
    /* padding: .375rem .75rem; */
    padding: 16px 12px;
    padding: 6px 12px;
    /* font-size: 1rem; */
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    height: 58px;
    height: 52px;
}

.form_floating label {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* padding: 1rem .75rem; */
    padding: 16px 12px;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    font-size: 14px;
}

.form_floating input:hover {
    border-color: var(--color-primary);
}

.form_floating input:focus,
.form_floating input:not(:placeholder-shown) {
    /* padding-top: 1.625rem;
    padding-bottom: .625rem; */
    padding-top: 26px;
    padding-bottom: 10px;
    color: #212529;
    background-color: #fff;
}

.form_floating input:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(var(--color-primary-int), 25%);
}

.form_floating input:focus~label,
.form_floating input:not(:placeholder-shown)~label {
    opacity: .65;
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}


/* ---------- Components  -  Input  -  Standar Input ---------- */
.from_standar input {
    display: block;
    width: 100%;
    /* padding: .375rem .75rem; */
    padding: 6px 12px;
    /* font-size: 1rem; */
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.from_standar input:not([type=file]):focus {
    color: #212529;
    background-color: #fff;
    /* border-color: #86b7fe; */
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgb(var(--color-primary-int), 25%);
}

.from_standar input:hover {
    border-color: var(--color-primary);
}

.from_standar.with_unite {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}


/* ---------- Components  -  Input  -  Input file ---------- */
.from_standar input[type=file]:not(:disabled):not([readonly]) {
    cursor: pointer;
}

.from_standar input[type=file]::file-selector-button {
    cursor: pointer;
    color: #212529;
    background-color: #e9ecef;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: 1px;
    border-radius: .375rem;
    /* height: 50px; */
    margin: -12px;
    -webkit-margin-end: 12px;
    margin-inline-end: 12px;
    padding: 12px;
}

.from_standar input[type=file]:hover::file-selector-button {
    background-color: var(--color-gray-dark);
}


/* ========== Components  -  BTN ========== */
.btn {
    display: inline-block;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: 1px solid black;
    border-radius: 6px;
    background-color: gray;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn {
    border: 1px solid var(--btn-border-color);
    background-color: var(--btn-bg-color);
    color: var(--btn-text-color);
}

.btn:hover {
    background-color: var(--btn-bg-color-hover);
    border: 1px solid var(--btn-border-color-hover);
    color: var(--btn-text-hover);
}

.btn:active {
    background-color: var(--btn-bg-color-active);
    border: 1px solid var(--btn-border-color-active);
    color: var(--btn-text-hover);
}

.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(var(--btn-shadow-focus-rgb), .5);
    background-color: var(--btn-bg-color-hover);
    border: 1px solid var(--btn-border-color-hover);
    outline: 0;
    color: var(--btn-text-hover);
}

.btn_little {
    font-size: 14px;
    padding: 4px 10px;
}

.btn_big {
    font-size: 18px;
    padding: 8px 14px;
}


/* ---------- Components  -  BTN  -  color ---------- */
.btn_primary {
    --btn-bg-color: var(--color-primary);
    --btn-border-color: var(--color-primary);

    --btn-bg-color-hover: var(--color-primary-light);
    --btn-border-color-hover: var(--color-primary);

    --btn-bg-color-active: var(--color-primary-activate);
    --btn-border-color-active: var(--color-primary-light);

    --btn-shadow-focus-rgb: var(--color-primary-int);

    --btn-text-color: white;
    --btn-text-hover: white;
}

.btn_secondary {
    --btn-bg-color: var(--color-secondary);
    --btn-border-color: var(--color-secondary);

    --btn-bg-color-hover: var(--color-secondary-dark);
    --btn-border-color-hover: var(--color-secondary);

    --btn-bg-color-active: var(--color-secondary-activate);
    --btn-border-color-active: var(--color-secondary-dark);

    --btn-shadow-focus-rgb: var(--color-secondary-int);

    --btn-text-color: white;
    --btn-text-hover: white;
}


/* ---------- Components  -  BTN  -  Outline color ---------- */
.btn_outline_primary {
    --btn-bg-color: white;
    --btn-border-color: var(--color-primary);

    --btn-bg-color-hover: var(--color-primary-light);
    --btn-border-color-hover: var(--color-primary);

    --btn-bg-color-active: var(--color-primary-activate);
    --btn-border-color-active: var(--color-primary-light);

    --btn-shadow-focus-rgb: var(--color-primary-int);

    --btn-text-color: var(--color-primary);
    --btn-text-hover: white;
}

.btn_outline_secondary {
    --btn-bg-color: white;
    --btn-border-color: var(--color-secondary);

    --btn-bg-color-hover: var(--color-secondary-dark);
    --btn-border-color-hover: var(--color-secondary);

    --btn-bg-color-active: var(--color-secondary-activate);
    --btn-border-color-active: var(--color-secondary-dark);

    --btn-shadow-focus-rgb: var(--color-secondary-int);

    --btn-text-color: var(--color-secondary);
    --btn-text-hover: white;
}


/* ========== Components  -  Alert ========== */
.alert {
    position: absolute;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;

    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: .8em;

    display: flex;
    align-items: center;
    justify-content: space-between;

    top: 10px;
    right: 13px;
    max-width: 230px;
}

.alert button.close {
    color: inherit;
    padding: 0rem 0 0 1rem;

    background-color: transparent;
    border: 0;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 0 #fff;
    opacity: .4;
    cursor: pointer;
}

.alert button.close:hover {
    color: black;
    opacity: .75;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/* ========== Components  -  Content box ========== */
.content_box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.box_number {
    width: 190px;
    border-radius: 6px;
    background: white;
}

.box_number .box_title {
    text-align: left;
    position: relative;
    font-size: 14px;
}

.box_number .box_title::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    display: inline-block;
    width: 100%;
    height: .5px;
    background-color: #bebcbc;
}

.box_number .box_value {
    font-size: 36px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--color-primary);
    /* text-align: center; */
}

.box_number .box_value span {
    font-size: 18px;
    color: black;
    font-weight: normal;
}


/* ========== Components  -  Title Underline ========== */
.section_name_souligne {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 12px;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 1px;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
}

.section_name_souligne::before {
    content: "";
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    background: #ddd;
    bottom: 1px;
    left: calc(50% - 60px);
}

.section_name_souligne::after {
    content: "";
    position: absolute;
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    bottom: 0px;
    left: calc(50% - 20px);
}


/* ========== Components  -  Power by ========== */

p.power_by {
    position: inherit;
    text-align: center;
    padding-bottom: 10px;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 10px;
}

p.power_by span {
    color: rgb(205, 16, 65);
    font-weight: bold;
}

p.power_by span.s2 {
    color: rgb(26, 34, 95);
    font-weight: bold;
    color: var(--color-primary);
}

p.power_by img {
    width: 50px;
    vertical-align: sub;
}

@media screen and (min-height: 686px) {
    p.power_by {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 0);
    }
}

#article_game p.power_by {
    position: inherit;
    text-align: center;
    padding-bottom: 10px;
    font-size: 12px;
    font-style: italic;
    margin-bottom: 10px;
}

/* ========== Components  -  Power by ========== */
.info_content {
    position: relative;
}

.info_text {
    position: absolute;
    font-size: 14px;
    border: 1px solid var(--color-primary);
    border-radius: 7px;
    padding: 3px 7px;
    background-color: white;
    width: max-content;
    right: 0;

    opacity: 0;
    transition: all .3s ease;
    transition-delay: 0s;
    z-index: 1;
}

.info_content:hover .info_text {
    opacity: 1;
    transition-delay: .3s;
}



/* -------------------------------- 
Element
----------------------------------*/
.hidden {
    display: none !important;
}

.space_max {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

i {
    color: var(--color-primary);
    margin: 0 7px;
}



/* -------------------------------- 
All page Share
----------------------------------*/
/* ========== All page Share  -  Element ========== */
main {
    margin-top: var(--margin-top);
}

.article_centrage {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 10px;
    height: calc(100vh - var(--margin-top));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 50px;
}


/* ========== All page Share  -  Section Title ========== */
#title_logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 70px;
    position: relative;
}

#title_logo div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

#title_logo h1 {
    font-size: 38px;
    font-weight: bold;
    color: var(--color-primary);
}

#title_logo img {
    width: 90px;
}

#logo_acelys_title {
    width: 140px!important;
}

/* ========== All page Share  -   ========== */
.part_section {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 100px;
}



/* -------------------------------- 
Page : Home  &  End
----------------------------------*/
#article_end,
#article_home {
    align-items: center;
    gap: 80px;
}

#end_btn_section,
#home_btn_section {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 30px; */

    /* position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%); */
}

#end_btn_section .section_name_souligne,
#home_btn_section .section_name_souligne {
    margin-bottom: 30px;
    font-size: 32px;
}

#end_btn_section #texte,
#home_btn_section #texte {
    text-align: center;
    max-width: 900px;
    width: 750px;
    margin: 0 auto;
}

#end_btn_section .btn,
#home_btn_section .btn {
    margin-top: 30px;
}



/* -------------------------------- 
Page : Register
----------------------------------*/
.dl_btn {
    cursor: default;
}

#register_import_file i {
    cursor: pointer;
    position: relative;
}

#register_import_file i:hover {
    color: var(--color-primary-light);
}

#register_form {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

#register_form section {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content_select_import_file {
    margin-bottom: 10px;
}


/* -------------------------------- 
Page : Display
----------------------------------*/
#article_display{
    height: auto;
}
#article_display #title_logo h1 {
    font-size: 26px;
}

#article_display #title_logo img {
    width: 40px;
}

#article_display #logo_acelys_title {
    width: 80px!important;
}

#article_display {
    margin: 0 auto 35px auto;
    gap: 70px;
    padding: 0 10px;
}

#displat_div_btn_start {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#display_repartition_time .box_number {
    width: 230px;
}

.column_content_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* ========== Page : Display  -  Organisation des tables ========== */
#div_btn_show_orga_tables {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;
}

#list_orga_tables {
    max-height: 0;
    /* transition: max-height 0.5s ease-out; */
    overflow: hidden;
}

#list_orga_tables.show {
    max-height: 10000px;
    transition: max-height 0.5s ease-in;
}

#list_orga_table_btn_round {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#list_orga_table_btn_round>p {
    cursor: pointer;
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    color: #272829;
    margin-bottom: 5px;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

#list_orga_table_btn_round>p.active,
#list_orga_table_btn_round>p:hover {
    color: var(--color-primary-light-very);
}

#game_list_orga_tables_list_round,
#list_orga_tables_list_round {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.game_one_round,
.one_round {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    display: none;
}

.game_one_round.show,
.one_round.show {
    display: flex;
}

.game_one_round .table,
.one_round .table {
    padding: 10px 15px;
}

.table_title {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
}

.table_value {
    font-size: 14px;
    text-align: center;
    margin-bottom: 4px;
}

/* ========== Page : Display  -  Game view ========== */
#article_game #title_logo h1 {
    font-size: 32px;
}

#article_game #title_logo img {
    width: 50px;
}

#article_game #logo_acelys_title {
    width: 90px!important;
}

#btn_fin_top {
    display: none;
}

#article_game #btn_fin_top {
    display: block;
    position: absolute;
    right: 20px;
}

#article_game {
    gap: 70px;
    margin: 0 auto 35px auto;
}

#chronometre,
#liste_tables,
#chrono_round,
#chrono_prepare_round {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#name_round {
    font-size: 24px;
}

#chrono_timer {
    font-size: 150px;
    color: var(--color-primary);
    letter-spacing: 5px;
}

#chrono_btn {
    margin-top: 10px;
}

#liste_tables_title {
    font-size: 22px;
    margin-bottom: 12px;
}

#article_game .table {
    padding: 30px 30px;
}

#article_game .table_title {
    font-size: 18px;
    font-weight: 500;
    position: relative;
    margin-bottom: 15px;
}

#article_game .table_title::before {
    content: "";
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    background: #ddd;
    bottom: -4px;
    left: calc(50% - 60px);
}

#article_game .table_value {
    font-size: 18px;
}

#btn_round_suivant {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ========== Page : Display  -  prepare Game view ========== */
#chrono_prepareGame{
    text-align: center;
}

#chrono_prepareGame #prepare_name_round{
    /* font-weight: bold; */
    /* color: var(--color-primary); */
    font-size: 28px;
}

#prepare_chrono_timer {
    font-size: 150px;
    color: var(--color-primary);
    letter-spacing: 5px;
}

#qui_parle_box {
    position: relative;
}

#qui_parle_box > div {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    left: -120px;
    top: -16px;
}

#qui_parle_box > div > div {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qui_parle_box > div > div p {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 18px;
}
#qui_parle_box > div > p {
    font-size: 18px;

}